﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <link href="~/Content/Login/css/font-awesome.css" rel="stylesheet" />
    <link href="~/Content/Login/css/login.css" rel="stylesheet" />

    <style>
        input::-webkit-input-placeholder {
            color: white;
        }

        input::-moz-placeholder {
            /* Mozilla Firefox 19+ */
            color: white;
        }

        input:-moz-placeholder {
            /* Mozilla Firefox 4 to 18 */
            color: white;
        }

        input:-ms-input-placeholder {
            /* Internet Explorer 10-11 */
            color: white;
        }

        .a {
            color: aliceblue;
            text-decoration: none;
            margin-left: 15%;
        }

        .w {
            margin-left: 0%;
        }
    </style>

</head>
<body>
    <form action="/Login/Log" method="POST">
        <div id="login-box">
            <h1>租房管理系统</h1>
            <div class="form">
                <div class="item">
                    <i class="fa fa-user-circle" @*aria-hidden="true"*@></i>
                    <input type="text" placeholder="账号" name="id" autocomplete="off">
                </div>

                <div class="item">
                    <i class="fa fa-key" aria-hidden="true"></i>
                    <input type="password" placeholder="密码" name="pwd" autocomplete="off">
                </div>

                <div class="item">
                    <a href="/Login/forget" class="a w">忘记密码?</a>
                    <a href="/Login/zhu" class="a">注册</a>
                </div>

            </div>
            <label id="lab" style="color:red">@ViewBag.msg</label>
            <br />
            <button type="submit" id="button">登录</button>
            @*<button type="button" style="background-image:none;font-size:15px;color:black" id="click" >游客登录</button>*@
        </div>
    </form>
</body>
</html>
<script src="~/Scripts/jquery-3.4.1.min.js"></script>
<script>
    $("#click").click(function () {
        window.location.href = "/Main/index";
    })
    $("#button").click(function () {
        var str = "";
        if ($("input[name='id']").val() == "" || $("input[name='pwd']").val() == "") {
            $("#lab").text("请输入用户名或密码");
            return false;
        }
    })
</script>
